S_1=input("请输入一个数")
# print(S_1[0],S_1[1],S_1[2],S_1[3])
S_2=S_1[3]+S_1[2]+S_1[1]+S_1[0]
print(S_2)